﻿<Application x:Class="ExampleControl.App"  
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" 
             xmlns:DeepEarth="clr-namespace:DeepEarth.Client.MapControl;assembly=DeepEarth.Client.MapControl" 
             xmlns:Controls="clr-namespace:DeepEarth.Client.MapControl.Controls;assembly=DeepEarth.Client.MapControl" 
             xmlns:DeepGeometryTools="clr-namespace:DeepEarth.Client.MapControl.Controls.GeometryTools;assembly=DeepEarth.Client.MapControl" 
             xmlns:DeepGeometry="clr-namespace:DeepEarth.Client.MapControl.Geometry;assembly=DeepEarth.Client.MapControl" 
             xmlns:DeepProtoControls="clr-namespace:ExampleControl.Controls"
             mc:Ignorable="d" >

    <Application.Resources>

        <!--Style Map-->
        <Style x:Key="PrototypeMapStyle" TargetType="DeepEarth:Map">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepEarth:Map">
                        <Grid>
                            <Grid x:Name="PART_LayoutRoot">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid x:Name="PART_MapContent" Grid.RowSpan="2" RenderTransformOrigin="0.5,0.5">
                                    <Grid.RenderTransform>
                                        <RotateTransform x:Name="PART_MapRotation" />
                                    </Grid.RenderTransform>
                                    <Controls:MouseControl x:Name="PART_MouseControl" /> 
                                    <DeepGeometryTools:DrawControl x:Name="PART_DrawControl" DrawLineColor="#FFEFFF00" DrawFillColor="#7FFF3B00" DrawLineThickness="3" DrawOpacity="1.0" Opacity="1.0" />
                                    <Grid x:Name="PART_MapLayers" />
                                </Grid>
                                <StackPanel x:Name="PART_LicenseContainer" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!--Style Pushpin -->
        <Style x:Name="PushpinStyle" TargetType="DeepProtoControls:Pushpin" >
            <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
            <Setter Property="AnchorPoint" Value="0.5,0.5" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:Pushpin">

                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="_ScaleTransform" ScaleX="1" ScaleY="1" />
                            </Grid.RenderTransform>
                            <Canvas x:Name="Layer_1" Width="50" Height="50" Canvas.Left="0" Canvas.Top="0">
                                <Path x:Name="DropShaddow" Width="24.3496" Height="39.3937" Canvas.Left="26.3333" Canvas.Top="-16.43966" Stretch="Fill" Fill="#44C6C6C6" Data="F1 M 16.3333,44.8333L 22.5,36.4453C 22.5,36.4453 29.7467,38.7493 33.3333,30.4453C 35.5306,25.3132 32.7806,21.5632 31.5,20C 32.3333,18.444 33,17.2227 33,17.2227C 33,17.2227 37.944,17.444 39.7773,14.444C 41.6107,11.444 40.556,8.16667 37.556,6.5C 34.4909,4.79753 30.9056,5.12565 28.9681,7.62565C 27.2656,10.1094 27.612,13.1107 28.6667,15.1107C 27.6667,17.056 27.5306,17.1257 26.9453,18.1667C 25.2806,17.8757 22.3893,18.2227 21.5,19.1667C 20.6107,20.1107 19.4225,21.459 18.7923,21.7292C 18.4023,21.8958 18.7077,25.8118 18.7077,25.8118C 18.7077,25.8118 25.444,27.4453 23.444,33.3333C 22.3984,36.4134 17.3092,37.6628 16.9375,37.6882C 16.6257,37.7077 16.3333,44.8333 16.3333,44.8333 Z "/>
                                <Path x:Name="Pinpoint" Width="2.35482" Height="7.14648" Canvas.Left="24.5833" Canvas.Top="16.6868" Stretch="Fill" Fill="#FF727272" Data="F1 M 14.5833,37.7708L 15.334,42.112L 16.334,44.8333L 16.778,42L 16.9382,37.6868C 16.9382,37.6868 15.6243,37.9375 14.5833,37.7708 Z "/>
                                <Path x:Name="Round_base" Width="16.339" Height="12.681" Canvas.Left="17.49589" Canvas.Top="4.1536" Stretch="Fill" Data="F1 M 7.5,32C 7.66797,36.7799 13.1667,37.8346 15.3346,37.8346L 15.3346,37.8346C 17.4987,37.8346 23.7682,36.9349 23.8346,31.1133L 23.8346,31.1133C 23.888,26.0547 16.776,25.2214 15.8893,25.1667L 15.8893,25.1667C 15.7376,25.1589 15.5814,25.1536 15.4238,25.1536L 15.4238,25.1536C 11.9642,25.1536 7.33854,27.4277 7.5,32 Z ">
                                    <Path.Fill>
                                        <RadialGradientBrush RadiusX="0.560988" RadiusY="0.722815" Center="0.731262,0.259524" GradientOrigin="0.731262,0.259524">
                                            <RadialGradientBrush.RelativeTransform>
                                                <TransformGroup/>
                                            </RadialGradientBrush.RelativeTransform>
                                            <GradientStop Color="#FF115EDB" Offset="0"/>
                                            <GradientStop Color="#FF083174" Offset="0.649877"/>
                                            <GradientStop Color="#FF00040E" Offset="1"/>
                                        </RadialGradientBrush>
                                    </Path.Fill>
                                </Path>
                                <Path x:Name="Base" Width="6.33333" Height="9.14486" Canvas.Left="22.5" Canvas.Top="0.556" Stretch="Fill" Fill="#FF125FDB" Data="F1 M 18.8333,21.556L 18.7773,29.112C 18.7773,29.112 16.1667,32.612 12.5,29.2227L 12.5,21.6667C 16.2507,22.5117 17.5521,22.0918 18.8333,21.556 Z "/>
                                <Path x:Name="base_shaddow" Width="9.86133" Height="14.7219" Canvas.Left="18.222" Canvas.Top="0.7272" Stretch="Fill" Fill="#83000000" Data="F1 M 12.5703,21.7272C 12.5703,21.7272 15.1113,22.7227 18.0007,22.1107C 18.0553,28.1667 18.0833,29.8958 18.0833,29.8958C 18.0833,29.8958 12.263,36.6309 11.722,36.4453C 9.61133,35.7227 8.222,33.7786 8.222,33.7786C 8.222,33.7786 8.66732,30.6667 12.5007,29.2227C 12.6113,27.6667 12.5703,21.7272 12.5703,21.7272 Z "/>
                                <Path x:Name="Hightlight" Width="1.56287" Height="2.89583" Canvas.Left="28.1667" Canvas.Top="5.9375" Stretch="Fill" Fill="#C5FFFFFF" Data="F1 M 18.8333,26.9375C 18.8333,26.9375 19.7507,27.6042 19.7292,28.2493C 19.7064,28.9616 19.6563,29.1777 19.2507,29.5827C 19.0625,29.7708 18.1667,29.8333 18.1667,29.8333L 18.8548,29.1042L 18.8333,26.9375 Z "/>
                                <Path x:Name="pin_head" Width="12.3359" Height="9.3425" Canvas.Left="19.83203" Canvas.Top="-8.0534" Stretch="Fill" Data="F1 M 9.83203,17.7227C 9.83203,20.0013 11.8893,22.556 16.0534,22.388L 16.0534,22.388C 20.2214,22.2227 22.168,19.944 22.168,17.6654L 22.168,17.6654C 22.168,15.8333 20.1107,13.1107 16.0534,13.0534L 15.9694,13.0534L 15.9694,13.0534C 12.8333,13.0534 9.83203,15.4642 9.83203,17.7227 Z ">
                                    <Path.Fill>
                                        <RadialGradientBrush RadiusX="0.72757" RadiusY="0.960692" Center="0.675586,0.0954698" GradientOrigin="0.675586,0.0954698">
                                            <RadialGradientBrush.RelativeTransform>
                                                <TransformGroup/>
                                            </RadialGradientBrush.RelativeTransform>
                                            <GradientStop Color="#FF115EDB" Offset="0"/>
                                            <GradientStop Color="#FF093BA7" Offset="0.649877"/>
                                            <GradientStop Color="#FF021973" Offset="1"/>
                                        </RadialGradientBrush>
                                    </Path.Fill>
                                </Path>
                            </Canvas>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- GeoFindListBoxStyle -->
        <Style x:Key="GeoFindListBoxStyle" TargetType="ListBox">
            <Setter Property="Padding" Value="1"/>
            <Setter Property="Background" Value="#FFFFFFFF"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="TabNavigation" Value="Once"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBox">
                        <ScrollViewer x:Name="ScrollViewer" BorderBrush="#FFEBEBEB" BorderThickness="2,2,2,2" Foreground="#FFFDFDFD" Padding="{TemplateBinding Padding}">
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!--PushPinArrowStyle -->
        <Style x:Name="PushPinArrowStyle" TargetType="DeepGeometry:PointBase" >
            <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
            <Setter Property="AnchorPoint" Value="0.5,1.0" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepGeometry:PointBase" >
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="_ScaleTransform" ScaleX="1" ScaleY="1" />
                            </Grid.RenderTransform>
                            <Image Source="arrow.png" Height="48" Width="48" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!--Style StandardButton -->
        <Style x:Key="StandardButton" TargetType="Button">
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid RenderTransformOrigin="0.5,0.5" x:Name="grid">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1000000"/>
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.85"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.85"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Normal">
                                        <Storyboard/>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="icon" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1000000"/>
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFFFFFFF"/>
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard/>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Rectangle HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Stroke="#BF2D2D2D" StrokeThickness="1" RadiusX="3.089" RadiusY="3.089" Opacity="0.5" x:Name="background">
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.201" ScaleY="1.201"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0.026" Y="0.01"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FF414141"/>
                                        <GradientStop Color="#FF121212" Offset="1"/>
                                        <GradientStop Color="#FF000000" Offset="0.929"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle Height="10.013" HorizontalAlignment="Stretch" Margin="1.43400001525879,1.4099999666214,1.44599997997284,0" VerticalAlignment="Top" StrokeThickness="0" RadiusX="2.714" RadiusY="2.714" Opacity="0.31" d:LayoutOverrides="Height" x:Name="glow">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#7FFFFFFF" Offset="0.567"/>
                                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,3,8,3"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!--Style ToggleButton -->
        <Style x:Key="ToggleButtonStyle" TargetType="ToggleButton">
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="ToggleButton">
        				<Grid RenderTransformOrigin="0.5,0.5" x:Name="grid">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform/>
                                    <SkewTransform/>
                                    <RotateTransform/>
                                    <TranslateTransform/>
                                </TransformGroup>
                            </Grid.RenderTransform>
        					<vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1000000"/>
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Pressed"/>
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.75"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Normal"/>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="icon" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="CheckStates">
                                	<vsm:VisualStateGroup.Transitions>
                                		<vsm:VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                	</vsm:VisualStateGroup.Transitions>
        							<vsm:VisualState x:Name="Checked">
        								<Storyboard>
        									<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
        										<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.85"/>
        									</DoubleAnimationUsingKeyFrames>
        									<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
        										<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.85"/>
        									</DoubleAnimationUsingKeyFrames>
        									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
        										<SplineColorKeyFrame KeyTime="00:00:00" Value="#FFA5A5A5"/>
        									</ColorAnimationUsingKeyFrames>
        									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
        										<SplineColorKeyFrame KeyTime="00:00:00" Value="#FFC2C2C2"/>
        									</ColorAnimationUsingKeyFrames>
        									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
        										<SplineColorKeyFrame KeyTime="00:00:00" Value="#FF333333"/>
        									</ColorAnimationUsingKeyFrames>
        									<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
        										<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.996"/>
        									</DoubleAnimationUsingKeyFrames>
        									<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
        										<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.12"/>
        									</DoubleAnimationUsingKeyFrames>
        								</Storyboard>
        							</vsm:VisualState>
        							<vsm:VisualState x:Name="Unchecked"/>
        						</vsm:VisualStateGroup>
                                <vsm:VisualStateGroup x:Name="FocusStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.1000000"/>
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
                                                <SplineColorKeyFrame KeyTime="00:00:00" Value="#FFFFFFFF"/>
                                            </ColorAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Unfocused">
                                        <Storyboard/>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Rectangle HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Stroke="#BF2D2D2D" StrokeThickness="1" RadiusX="3" RadiusY="3" Opacity="0.5" x:Name="background">
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.201" ScaleY="1.201"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0.026" Y="0.01"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FF414141"/>
                                        <GradientStop Color="#FF121212" Offset="1"/>
                                        <GradientStop Color="#FF000000" Offset="0.929"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle Height="10.013" HorizontalAlignment="Stretch" Margin="1.43400001525879,1.4099999666214,1.44599997997284,0" VerticalAlignment="Top" StrokeThickness="0" RadiusX="2.714" RadiusY="2.714" Opacity="0.31" d:LayoutOverrides="Height" x:Name="glow">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#7FFFFFFF" Offset="0.567"/>
                                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8,3,8,3"/>
                        </Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>

        <!-- Style RwPushPinStyle-->
        <Style x:Name="RoadWarriorPinStyle" TargetType="DeepProtoControls:DevPin">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:DevPin">
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="PART_PinScale" />
                            </Grid.RenderTransform>

                            <Image Cursor="Arrow"  x:Name="PART_Image" Width="64" Height="64" Source="Resources/roadwarrior.png" Stretch="Uniform"  RenderTransformOrigin="0.5,0.5" />
                            <Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="RoadWarrior" />

                            <Grid x:Name="PART_Balloon" Width="60" Height="60" Cursor="Arrow">

                                <Grid.Resources>
                                    <Storyboard x:Name="PART_ShowInfoBalloon">
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
                                    </Storyboard>
                                </Grid.Resources>

                                <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
                                    <Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                </Grid>

                                <Grid x:Name="PART_MaxBalloon" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-128,-200,43" RenderTransformOrigin="0,1" Width="210" Height="144">
                                    <Grid.RenderTransform>
                                        <ScaleTransform x:Name="BalloonScale" />
                                    </Grid.RenderTransform>

                                    <StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
                                        <StackPanel>
                                            <Border  MinWidth="64" MinHeight="24" Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" HorizontalAlignment="Center">
                                                <TextBlock x:Name="Title" Text="Rick Kennedy" TextAlignment="Center" Foreground="White" FontSize="12"/>
                                            </Border>
                                        </StackPanel>

                                        <Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
                                            <StackPanel >
                                                <TextBlock 
													x:Name="lblDescription" 
													Text="Rick is a software architect living in Washington, DC. His company, RoadWarrior, provides innovative solutions to mobile workforces. To find out more, check out his website at" 
													TextAlignment="Left" 
													Foreground="White" 
													FontSize="10" 
													MinHeight="64"  
													MaxHeight="108" 
													MinWidth="162" 
													MaxWidth="212" 
													TextWrapping="Wrap"  />
                                                <HyperlinkButton FontSize="14" NavigateUri="http://www.roadwarriorllc.com" ToolTipService.ToolTip="RoadWarrior">
                                                    <TextBlock Text="www.roadwarriorllc.com" Margin="8" VerticalAlignment="Top" HorizontalAlignment="Right" />
                                                </HyperlinkButton>
                                                <StackPanel Orientation="Horizontal"/>
                                            </StackPanel>
                                        </Border>
                                    </StackPanel>
                                </Grid>

                            </Grid>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Style NoobiePinStyle-->
        <Style x:Name="NoobiePinStyle" TargetType="DeepProtoControls:DevPin">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:DevPin">
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="PART_PinScale" />
                            </Grid.RenderTransform>

                            <Image Cursor="Arrow"  x:Name="PART_Image" Width="64" Height="64" Source="Resources/noob.png" Stretch="Uniform"  RenderTransformOrigin="0.5,0.5" />
                            <Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="DotNetNoobie" />

                            <Grid x:Name="PART_Balloon" Width="60" Height="60">

                                <Grid.Resources>
                                    <Storyboard x:Name="PART_ShowInfoBalloon">
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
                                    </Storyboard>
                                </Grid.Resources>

                                <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
                                    <Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                </Grid>

                                <Grid x:Name="PART_MaxBalloon" Visibility="Collapsed"  Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-158,-205,43" RenderTransformOrigin="0,1" MinHeight="45" MinWidth="101">
                                    <Grid.RenderTransform>
                                        <ScaleTransform x:Name="BalloonScale" />
                                    </Grid.RenderTransform>

                                    <StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
                                        <StackPanel>
                                            <Border  MinWidth="64" MinHeight="24" Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" HorizontalAlignment="Center">
                                                <TextBlock x:Name="Title" Text="David Thiessen" TextAlignment="Center" Foreground="White" FontSize="12"/>
                                            </Border>
                                        </StackPanel>

                                        <Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
                                            <StackPanel >
                                                <TextBox x:Name="lblDescription" 
                                                         Text="David is a Microsoft .Net developer from the Gold Coast, Queensland Australia, Contact at david.thiessen@gmail.com" 
                                                         Background="Transparent" 
                                                         TextAlignment="Left" 
                                                         Foreground="White" 
                                                         FontSize="10" MinHeight="64"  
                                                         VerticalScrollBarVisibility="Auto" 
                                                         MaxHeight="108" 
                                                         MinWidth="162" 
                                                         MaxWidth="212" 
                                                         TextWrapping="Wrap"  />
                                                <StackPanel Orientation="Horizontal"/>
                                            </StackPanel>
                                        </Border>
                                    </StackPanel>
                                </Grid>

                            </Grid>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Style SoulPinStyle-->
        <Style x:Name="SoulPinStyle" TargetType="DeepProtoControls:DevPin">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:DevPin">
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="PART_PinScale" />
                            </Grid.RenderTransform>

                            <Image Cursor="Arrow"  x:Name="PART_Image" Width="64" Height="64" Source="Resources/soul.png" Stretch="Uniform"  RenderTransformOrigin="0.5,0.5" />
                            <Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="SoulSolutions" />

                            <Grid x:Name="PART_Balloon" Width="60" Height="60">

                                <Grid.Resources>
                                    <Storyboard x:Name="PART_ShowInfoBalloon">
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
                                    </Storyboard>
                                </Grid.Resources>

                                <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
                                    <Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                </Grid>

                                <Grid x:Name="PART_MaxBalloon" Visibility="Collapsed"  Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-158,-205,43" RenderTransformOrigin="0,1" MinHeight="45" MinWidth="101">
                                    <Grid.RenderTransform>
                                        <ScaleTransform x:Name="BalloonScale" />
                                    </Grid.RenderTransform>

                                    <StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
                                        <StackPanel>
                                            <Border  MinWidth="64" MinHeight="24" Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" HorizontalAlignment="Center">
                                                <TextBlock x:Name="Title" Text="John OBrien" TextAlignment="Center" Foreground="White" FontSize="12"/>
                                            </Border>
                                        </StackPanel>

                                        <Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
                                            <StackPanel >
                                                <TextBlock 
													x:Name="lblDescription" 
													Text="John is a software developer based in Brisbane, Australia. A Windows Live Platform MVP, John empowers companies with amazing new tools to extend their reach and enrich their applications. Learn more at" 
													TextAlignment="Left" 
													Foreground="White" 
													FontSize="10" 
													MinHeight="64"  
													MaxHeight="108" 
													MinWidth="162" 
													MaxWidth="212" 
													TextWrapping="Wrap"  />
                                                <HyperlinkButton FontSize="14" NavigateUri="http://www.soulsolutions.com.au" ToolTipService.ToolTip="SoulSolutions">
                                                    <TextBlock Text="www.soulsolutions.com.au" Margin="8" VerticalAlignment="Top" HorizontalAlignment="Right" />
                                                </HyperlinkButton>
                                                <StackPanel Orientation="Horizontal"/>
                                            </StackPanel>
                                        </Border>
                                    </StackPanel>
                                </Grid>

                            </Grid>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Style SMBeckerPinStyle-->
        <Style x:Name="SMBeckerPinStyle" TargetType="DeepProtoControls:DevPin">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:DevPin">
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="PART_PinScale" />
                            </Grid.RenderTransform>

                            <Image Cursor="Arrow"  x:Name="PART_Image" Width="64" Height="64" Source="Resources/smbecker.png" Stretch="Uniform"  RenderTransformOrigin="0.5,0.5" />
                            <Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="smbecker" />

                            <Grid x:Name="PART_Balloon" Width="60" Height="60">

                                <Grid.Resources>
                                    <Storyboard x:Name="PART_ShowInfoBalloon">
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
                                    </Storyboard>
                                </Grid.Resources>

                                <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
                                    <Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                </Grid>

                                <Grid x:Name="PART_MaxBalloon" Visibility="Collapsed"  Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-158,-205,43" RenderTransformOrigin="0,1" MinHeight="45" MinWidth="101">
                                    <Grid.RenderTransform>
                                        <ScaleTransform x:Name="BalloonScale" />
                                    </Grid.RenderTransform>

                                    <StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
                                        <StackPanel>
                                            <Border  MinWidth="64" MinHeight="24" Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" HorizontalAlignment="Center">
                                                <TextBlock x:Name="Title" Text="Shaun Becker" TextAlignment="Center" Foreground="White" FontSize="12"/>
                                            </Border>
                                        </StackPanel>

                                        <Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
                                            <StackPanel >
                                                <TextBox x:Name="lblDescription" 
                                                         Text="Shaun Becker is a senior developer creating predictive analytics applications for a company in Ann Arbor." 
                                                         Background="Transparent" 
                                                         TextAlignment="Left" 
                                                         Foreground="White" 
                                                         FontSize="10" 
                                                         MinHeight="64"  
                                                         VerticalScrollBarVisibility="Auto" 
                                                         MaxHeight="108" 
                                                         MinWidth="162" 
                                                         MaxWidth="212" 
                                                         TextWrapping="Wrap"  />
                                                <!--<TextBlock x:Name="lblDescription" TextWrapping="Wrap">-->
                                                <!--<TextBox>-->
                                                <!--<Run> Rick Kennedy is a software architect living in Washington, DC. His company , RoadWarrior, provides an innovative solution for mobile workforce productivity. To learn more check out my website...</Run>-->
                                                <!--</TextBox>-->
                                                <!--<HyperlinkButton NavigateUri="http://www.roadwarriorllc.com/" Content="RoadWarrior Website..."/>-->
                                                <!--Text=RoadWarrior Website.." Background="Transparent" TextAlignment="Left" Foreground="White" FontSize="10" MinHeight="64"  VerticalScrollBarVisibility="Auto" MaxHeight="108" MinWidth="162" MaxWidth="212" HorizontalScrollBarVisibility="Auto" />-->
                                                <!--</TextBlock>-->
                                                <StackPanel Orientation="Horizontal"/>
                                            </StackPanel>
                                        </Border>
                                    </StackPanel>
                                </Grid>

                            </Grid>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Style AquasealPinStyle-->
        <Style x:Name="AquasealPinStyle" TargetType="DeepProtoControls:DevPin">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:DevPin">
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="PART_PinScale" />
                            </Grid.RenderTransform>

                            <Image Cursor="Arrow"  x:Name="PART_Image" Width="64" Height="64" Source="Resources/aquaseal.png" Stretch="Uniform"  RenderTransformOrigin="0.5,0.5" />
                            <Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="Aquaseal" />

                            <Grid x:Name="PART_Balloon" Width="60" Height="60">

                                <Grid.Resources>
                                    <Storyboard x:Name="PART_ShowInfoBalloon">
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
                                    </Storyboard>
                                </Grid.Resources>

                                <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
                                    <Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                </Grid>

                                <Grid x:Name="PART_MaxBalloon" Visibility="Collapsed"  Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-158,-205,43" RenderTransformOrigin="0,1" MinHeight="45" MinWidth="101">
                                    <Grid.RenderTransform>
                                        <ScaleTransform x:Name="BalloonScale" />
                                    </Grid.RenderTransform>

                                    <StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
                                        <StackPanel>
                                            <Border  MinWidth="64" MinHeight="24" Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" HorizontalAlignment="Center">
                                                <TextBlock x:Name="Title" Text="Matt Serbinski" TextAlignment="Center" Foreground="White" FontSize="12"/>
                                            </Border>
                                        </StackPanel>

                                        <Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
                                            <StackPanel>
                                                <TextBlock 
													x:Name="lblDescription" 
													Text="Matt Serbinski is a computer engineer currently working on rapid development prototype projects that involve hardware and software integration"
												    TextAlignment="Left" 
													Foreground="White" 
													FontSize="10" 
													MinHeight="64"  
													MaxHeight="108" 
													MinWidth="162" 
													MaxWidth="212" 
													TextWrapping="Wrap"  />
                                                <HyperlinkButton FontSize="14" NavigateUri="http://www.mattserbinski.com" ToolTipService.ToolTip="Click to visit my page">
                                                    <TextBlock Text="mattserbinski.com" Margin="8" VerticalAlignment="Top" HorizontalAlignment="Right" />
                                                </HyperlinkButton>
                                            </StackPanel>
                                        </Border>
                                    </StackPanel>
                                </Grid>

                            </Grid>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Style GeoRssPinStyle-->
        <Style x:Name="GeoRssPinStyle" TargetType="DeepProtoControls:GeoRssPin">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepProtoControls:GeoRssPin">
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="PART_PinScale" />
                            </Grid.RenderTransform>

                            <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,-12,-12,0" >
                                <Image Cursor="Arrow"  x:Name="PART_Image" Source="Resources/GeometryTools/Pin.png" Width="20" Stretch="Uniform" />
                            </Grid>
                            <Grid x:Name="toolTip" Background="Transparent" ToolTipService.ToolTip="" />

                            <Grid x:Name="PART_Balloon" Width="60" Height="60" Cursor="Arrow">

                                <Grid.Resources>
                                    <Storyboard x:Name="PART_ShowInfoBalloon">
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleX" From="0.25" To="1" Duration="0:0:0.1"/>
                                        <DoubleAnimation Storyboard.TargetName="BalloonScale" Storyboard.TargetProperty="ScaleY" From="0.25" To="1" Duration="0:0:0.1"/>
                                    </Storyboard>
                                </Grid.Resources>
                                <!--
                                <Grid x:Name="PART_MinBalloon" Cursor="Hand" HorizontalAlignment="Right" Margin="0,-12,-12,0" VerticalAlignment="Top" >
                                    <Image x:Name="PART_InfoImage" Source="Resources/information.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                </Grid>
                                -->
                                <Grid x:Name="PART_MaxBalloon" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="42,-128,-200,43" RenderTransformOrigin="0,1" Width="210" Height="144">
                                    <Grid.RenderTransform>
                                        <ScaleTransform x:Name="BalloonScale" />
                                    </Grid.RenderTransform>

                                    <StackPanel Margin="0,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" >
                                        <StackPanel>
                                            <Border  MinWidth="64" MinHeight="24" Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" HorizontalAlignment="Center">
                                                <TextBlock x:Name="Title" Text="Rick Kennedy" TextAlignment="Center" Foreground="White" FontSize="9"/>
                                            </Border>
                                        </StackPanel>

                                        <Border Background="#AA000000" CornerRadius="5" Padding="6,2,6,2" Margin="0,4,0,0" >
                                            <StackPanel >
                                                <TextBlock 
													x:Name="lblDescription" 
													Text="Rick is a software architect living in Washington, DC. His company, RoadWarrior, provides innovative solutions to mobile workforces. To find out more, check out his website at" 
													TextAlignment="Left" 
													Foreground="White" 
													FontSize="8" 
													MinHeight="64"  
													MaxHeight="108" 
													MinWidth="162" 
													MaxWidth="212" 
													TextWrapping="Wrap"  />
                                                <StackPanel Orientation="Horizontal"/>
                                            </StackPanel>
                                        </Border>
                                    </StackPanel>
                                </Grid>

                            </Grid>

                        </Grid>

                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


        <!-- Style ColorPickerTextBox-->
        <Style x:Key="ColorPickerTextBoxStyle" TargetType="TextBox">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TextBox">
                        <Grid x:Name="RootElement">
                            <Grid.Resources>
                                <Storyboard x:Key="Normal State"/>
                                <Storyboard x:Key="Focused State"/>
                            </Grid.Resources>
                            <Border BorderBrush="#FFA4A4A4" BorderThickness="1,1,1,1" CornerRadius="6,6,6,6" Background="{TemplateBinding Background}">
                                <ScrollViewer x:Name="ContentElement" BorderThickness="0" Padding="{TemplateBinding Padding}" Height="Auto" Width="Auto" />
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!--Style Slider -->
        <Style x:Key="SliderStyle" TargetType="Slider">

            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Maximum" Value="10"/>
            <Setter Property="Minimum" Value="0"/>
            <Setter Property="Value" Value="0"/>
            <Setter Property="LargeChange" Value="0.25"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Slider">
                        <Grid x:Name="Root">
                            <Grid.Resources>
                                <ControlTemplate x:Key="RepeatButtonTemplate">
                                    <Grid x:Name="Root" Opacity="0" Background="Transparent"/>
                                </ControlTemplate>
                            </Grid.Resources>
                            <vsm:VisualStateManager.VisualStateGroups>
                                <vsm:VisualStateGroup x:Name="CommonStates">
                                    <vsm:VisualStateGroup.Transitions>
                                        <vsm:VisualTransition GeneratedDuration="00:00:00.3000000"/>
                                    </vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualState x:Name="Normal">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Root" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Root" Storyboard.TargetProperty="(UIElement.Opacity)">
                                                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                    <vsm:VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="HorizontalTrackRectangleDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ThumbDisabledOverlay" Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </vsm:VisualState>
                                </vsm:VisualStateGroup>
                            </vsm:VisualStateManager.VisualStateGroups>
                            <Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Rectangle x:Name="TrackRectangle" Height="8" Margin="5,0,5,0" Grid.Column="0" Grid.ColumnSpan="3" StrokeThickness="{TemplateBinding BorderThickness}" RadiusX="4" RadiusY="4">
                                	<Rectangle.Fill>
                                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                			<GradientStop Color="#FF646464"/>
                                			<GradientStop Color="#FF353535" Offset="1"/>
                                		</LinearGradientBrush>
                                	</Rectangle.Fill>
                                </Rectangle>
                                <Rectangle x:Name="HorizontalTrackRectangleDisabledOverlay" Height="3" Margin="5,0,5,0" Opacity=".55" Visibility="Collapsed" Grid.Column="0" Grid.ColumnSpan="3" Fill="White" RadiusX="1" RadiusY="1"/>
                                <RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" ClickMode="Press" Grid.Column="0" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}"/>
                                <Thumb x:Name="HorizontalThumb" Height="18" Width="11" Grid.Column="1" IsTabStop="True" >
                                    <Thumb.Style>
                                        <Style TargetType="Thumb">
                                            <Setter Property="Background" Value="#FF1F3B53"/>
                                            <Setter Property="BorderThickness" Value="1"/>
                                            <Setter Property="IsTabStop" Value="False"/>
                                            <Setter Property="BorderBrush">
                                                <Setter.Value>
                                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                                                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                                                        <GradientStop Color="#FF718597" Offset="0.375"/>
                                                        <GradientStop Color="#FF617584" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Setter.Value>
                                            </Setter>
                                            <Setter Property="Template">
                                                <Setter.Value>
                                                    <ControlTemplate TargetType="Thumb">
                                                        <Grid>
                                                            <Border x:Name="Background" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" BorderBrush="#FF020202">
                                                                <Grid Margin="1">
                                                                    <Border x:Name="BackgroundAnimation" Opacity="0" Background="#FF66696C"/>
                                                                    <Rectangle x:Name="BackgroundGradient">
                                                                        <Rectangle.Fill>
                                                                            <LinearGradientBrush EndPoint="0.699999988079071,1" StartPoint="0.699999988079071,0">
                                                                                <GradientStop Color="#FF555555"/>
                                                                                <GradientStop Color="#FF6A6A6A" Offset="0.375"/>
                                                                                <GradientStop Color="#FF6A6A6A" Offset="0.625"/>
                                                                                <GradientStop Color="#FF555555" Offset="1"/>
                                                                            </LinearGradientBrush>
                                                                        </Rectangle.Fill>
                                                                    </Rectangle>
                                                                </Grid>
                                                            </Border>
                                                            <Rectangle x:Name="DisabledVisualElement" IsHitTestVisible="false" Opacity="0" Fill="#FFFFFFFF" RadiusX="2" RadiusY="2"/>
                                                            <Rectangle Margin="1" x:Name="FocusVisualElement" IsHitTestVisible="false" Opacity="0" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
                                                        </Grid>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Thumb.Style>
                                </Thumb>
                                <Rectangle x:Name="ThumbDisabledOverlay" Width="11" Opacity=".55" Visibility="Collapsed" Grid.Column="1" Fill="White" RadiusX="2" RadiusY="2"/>
                                <RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" ClickMode="Press" Grid.Column="2" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}"/>
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Data Template Magnifine Glass-->
        <DataTemplate x:Name="MagnifineGlass">
            <Grid>
                <Path HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.46,0.52" Data="M9.7357426,1.2991188 C8.8391314,1.3764834 7.9657421,1.7963786 7.328094,2.5404668 C6.0527983,4.0286427 6.2033973,6.2500486 7.6644664,7.5021152 C9.125536,8.7541819 11.343798,8.5627775 12.619094,7.0746012 C13.89439,5.5864253 13.743791,3.3650196 12.282722,2.1129529 C11.552187,1.4869194 10.632354,1.2217538 9.7357426,1.2991188 z M9.7358646,0.014144421 C10.948107,-0.079320908 12.195944,0.28967381 13.192041,1.1432819 C15.184237,2.8504987 15.415072,5.8496809 13.707626,7.842144 C12.00018,9.8346071 9.001029,10.065845 7.0088339,8.3586283 C6.1849132,7.6525679 5.662262,6.7255244 5.5311456,5.7236261 L0.023058288,6.0170622 L-0.023091979,3.7851748 L5.4839067,4.0786262 C5.5233302,3.2056813 5.8855095,2.3689535 6.4932489,1.6597667 C7.346972,0.66353512 8.5236216,0.10760975 9.7358646,0.014144421 z" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Fill="#FFFFFFFF" x:Name="icon" Margin="0,0,0,0">
                    <Path.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="1"/>
                            <SkewTransform/>
                            <RotateTransform Angle="-40.595"/>
                            <TranslateTransform Y="-0.0034574651858712002" X="-0.0016605474372224371"/>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
            </Grid>
        </DataTemplate>

        <!--DataTemplate GeocodeResult Template -->
        <DataTemplate x:Key="GeocodeResultTemplate">
            <StackPanel>
                <StackPanel>
                    <TextBlock Text="{Binding Path=DisplayName}"/>
                    <ItemsControl ItemsSource="{Binding Path=Locations}">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="Lat: "/>
                                        <TextBlock Text="{Binding Path=Latitude}"/>
                                    </StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="Lon: "/>
                                        <TextBlock Text="{Binding Path=Longitude}"/>
                                    </StackPanel>
                                </StackPanel>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </StackPanel>
            </StackPanel>
        </DataTemplate>



        <!-- Style PinPoint -->
        <!--<Style x:Name="DrawPinPoint" TargetType="DeepGeometry:PointBase" >
            <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
            <Setter Property="AnchorPoint" Value="0.5,1.0" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="DeepGeometry:PointBase" >
                        <Grid>
                            <Grid.RenderTransform>
                                <ScaleTransform x:Name="_ScaleTransform" ScaleX="1" ScaleY="1" />
                            </Grid.RenderTransform>
                            <Image Source="public.png" Height="48" Width="48" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>-->

    </Application.Resources>

</Application>